var countryCode = [
  {
    id: 1, engName: "United States of America", shortName: "USA", chineseName: "美国", img: "/images/guoqi/uk.jpg"
  },
  {
    id: 2, engName: "Japan", shortName: "Japan", chineseName: "日本", img: "/images/guoqi/uk.jpg"
  }
]

function getCountryInfo(countryId) {
  for (var idx = 0; idx < countryCode.length;idx++) {
    if (countryId == countryCode[idx].id) {
      return countryCode[idx];
    }
  }
}

module.exports = {
  countryCode:countryCode,
  getCountryInfo: getCountryInfo
}